/**
 * 	 Copyright (c) 2008, 2009 Lukas Zaruba
 * 
 *   This file is part of UniAnalyzer (Universal Analyzer).
 *
 *   UniAnalyzer is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU Lesser General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   UniAnalyzer is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU Lesser General Public License for more details.
 *
 *   You should have received a copy of the GNU Lesser General Public License
 *   along with UniAnalyzer. If not, see <http://www.gnu.org/licenses/>.
 */

package net.zarubsys.unianalyzer.dataviews.lpt.gui.graph.utils;
import org.eclipse.jface.resource.ImageRegistry;
import org.eclipse.ui.plugin.AbstractUIPlugin;

public class GraphEditorPlugin extends AbstractUIPlugin {
	
	public static final String ZOOM_OUT = "zoom.out";
	public static final String ZOOM_IN = "zoom.in";
	public static final String ZOOM_FIT = "zoom.fit";
	public static final String NAVIGATION_GO_LAST = "navigation.goLast";
	public static final String NAVIGATION_GO_NEXT = "navigation.goNext";
	public static final String NAVIGATION_GO_JUMP = "navigation.goJump";
	public static final String NAVIGATION_GO_PREVIOUS = "navigation.goPrevious";
	public static final String NAVIGATION_GO_FIRST = "navigation.goFirst";
	public static final String DISCARD_CURSORS = "cursors.discard";

	private static final String PLUGIN_ID = "net.zarubsys.unianalyzer.dataviews.lpt.gui.graph";
	
	private static GraphEditorPlugin INSTANCE;

	public GraphEditorPlugin() {
		INSTANCE = this; // It is OK as long as this plugin is singleton
	}
	
	public static GraphEditorPlugin getDefault() {
		return INSTANCE;
	}
	
	@Override
	protected void initializeImageRegistry(ImageRegistry reg) {
		super.initializeImageRegistry(reg);
		reg.put(NAVIGATION_GO_FIRST, imageDescriptorFromPlugin(PLUGIN_ID, "icons/go-first.gif"));
		reg.put(NAVIGATION_GO_PREVIOUS, imageDescriptorFromPlugin(PLUGIN_ID, "icons/go-previous.gif"));
		reg.put(NAVIGATION_GO_JUMP, imageDescriptorFromPlugin(PLUGIN_ID, "icons/go-jump.gif"));
		reg.put(NAVIGATION_GO_NEXT, imageDescriptorFromPlugin(PLUGIN_ID, "icons/go-next.gif"));
		reg.put(NAVIGATION_GO_LAST, imageDescriptorFromPlugin(PLUGIN_ID, "icons/go-last.gif"));
		reg.put(ZOOM_FIT, imageDescriptorFromPlugin(PLUGIN_ID, "icons/zoom-fit-best.gif"));
		reg.put(ZOOM_IN, imageDescriptorFromPlugin(PLUGIN_ID, "icons/zoom-in.gif"));
		reg.put(ZOOM_OUT, imageDescriptorFromPlugin(PLUGIN_ID, "icons/zoom-out.gif"));
		reg.put(DISCARD_CURSORS, imageDescriptorFromPlugin(PLUGIN_ID, "icons/cursor-discard.gif"));
	}

}


/*
 * $Log$
 */